<template>
  <div class="scroll-good">
    <div class="good flex-box" v-for="good in dishData" :key="good.value">
      <img class="good__image" :src="good.image">
      <div class="good__info">
        <div class="good__title">{{good.label}}</div>
        <div class="good__footer flex-box">
          <div class="good__price">{{good.price}}</div>
          <i class="el-icon-circle-plus" style="color:#d32f2f;"></i>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    dishData: Array
  }
};
</script>

<style scoped>
.scroll-good {
  overflow: hidden;

  width: 375px;

  background: #f4f4f6;
}
.good {
  width: 359px;
  height: 140px;
  margin: 0 auto 8px auto;
  border-radius: 4px;
  box-shadow: 4px 4px 8px #9e9e9e;
}
.good__image {
  width: 179px;
  height: 140px;
}
.good__info {
  width: 180px;
  height: 140px;
}
</style>
